package com.lik888;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootApplication
public class SpringSecuritydemo2Application {

    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String pwd = encoder.encode("12345678");
        System.out.println("你的 BCrypt 密码：" + pwd);
        System.out.println("长度：" + pwd.length()); // 必须是 60！

        SpringApplication.run(SpringSecuritydemo2Application.class, args);
    }

}
